package config;

import java.util.Calendar;

/**
 * @author lisc
 */
public class CommonValue {
	public static final boolean isDebug = true;//是否调试
	public static  boolean openPay = false;//是否调试

	public static final String PackageName = "cn.aramark.pos_terminal";
	// Intranet environment
	public static String BASE_API;//WCApplication中配置
	public static final String URL_PREFIX = "app/api/order/";
	public static final String URL_CARDREADER = "app/api/cardreader/";
	public static final String URL_CARD = "app/api/card/";
	public static final String DATABASE_NAME = PackageName.replaceAll("\\.", "_");

	public static final String TASK_CHANGED_ACTION = PackageName+".TASK_CHANGED_ACTION";
	public static final String LINE_CHANGED_ACTION = PackageName+".LINE_CHANGED_ACTION";
	public static final String PUSH_CONNECT_ACTION = PackageName+".PUSH_CONNECT_ACTION";
	public static final String PUSH_CONNECT_STATUS = "pushConnectStatus";
	public static final String BDCONN_CHANNEL_OK = "1";	//百度连接绑定获取Channel成功
	public static final String BDCONN_CHANNEL_NO = "2";	//百度连接绑定获取Channel未成功
	public static final String XGCONN_TOKEN_OK = "3";	//腾讯信鸽注册获取token成功
	public static final String XGCONN_TOKEN_NO = "4";	//腾讯信鸽注册获取token未成功


	/**
	 * 操作处理结果
	 */
	public static final int OPT_OK = 1;			// 操作成功
	public static final int OPT_NONE = 0;		// 操作无,0(int的默认值无业务意义)
	public static final int OPT_CANCELED = -1;	// 操作失败

	public static final int LOGIN_INVALID = -4;	// 登录失效

	/* 通知到达手持方式 1:百度推送、2:同步 、3：信鸽推送*/
	public static final String ARRIVE_PUSHED = "1";
	public static final String ARRIVE_SYNCED = "2";
	public static final String ARRIVE_PUSHED_XG = "3";

	// 操作进行中提示消息
	public static final String OPTING_MSG = "请稍后...";
	public static final String PAYING_MSG = "支付进行中...";

	// 查询时无运送员ID时提示信息
	public static final String NO_YSY_ID_MSG = "登录已失效(或非运送员)，请重新登录";

	// USERINFO
	public static final String LOGIN_SET = "login_set";
	public static final String USERID = "userId";
	public static final String CACHEKEY = "cachekey";
	public static final String TRANSPORTERID = "transporterId";
	public static final String CHANNEL_ID = "channelId";//百度云推送唯一标识
	public static final String XG_TOKEN = "xg_token";//腾讯信鸽唯一标识
	public static final String APP_ID = "appid";

	// 更新日期
	public static Calendar CHECK_TIME;

	// 请求码
	public static final int REQUEST_CODE_CONFIG_SERVER = 1;	//服务器地址配置
	public static final int REQUEST_CODE_MENU_CAPTURE = 2;	//菜单扫码
	public static final int REQUEST_CODE_TASK_PROCESS = 3;	//任务处理


	/* 状态(0:否、无、未启用、失效等 1:是、有、已启用、有效等) */
	public static final String STATUS_NO = "0";
	public static final String STATUS_YES = "1";

	//XListView
	public static int COMPLETE_TIME = 1;// 下拉刷新成功显示时间

	//微信订单查询
	public static String wx_search_url="https://api.mch.weixin.qq.com/pay/orderquery";
	public static String wx_search_appid="wx2faec6d97bb8d50a";
	public static String wx_search_mchid="1316199301";
	public static String wx_search_key="sdekdib83jd84jd3mf92orid8bkd90zx";

	//扫码医院为止信息查询
	public static String  search_sapce_info="http://pxrmevs.aramark.cn/pub/app/api/searchSpaceInfo";
	//扫码医院为止信息查询
	public static String  HC="http://pxrmevs.aramark.cn/pub/app/api/getChildrenSpace";
	//扫码医院为止信息查询
	public static String  NFCHC="http://pxrmevs.aramark.cn/pub/app/api/getSpaceInfoByNFCCode";

}
